﻿<GenericWPF:WindowExtenBase x:Class="EzDesk.DesktopClient.View.ShellView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                            xmlns:GenericWPF="clr-namespace:EzDesk.Generic.WPF;assembly=EzDesk.Generic.WPF"
        AllowsTransparency="True"
        WindowStyle="None" 
        Background="Transparent"
        WindowStartupLocation="Manual"
        Top="0"
        Left="600"
        Title="MainWindow" Height="588" Width="288">
    <Grid x:Name="LayoutRoot">
        <Border CornerRadius="5,5,0,0" BorderThickness="1" BorderBrush="{StaticResource BorderGray}" Background="White">
            <Grid x:Name="MainGrid">
                <Grid.RowDefinitions>
                    <RowDefinition x:Name="TopRow" Height="20"></RowDefinition>
                    <RowDefinition x:Name="SelfInfoRow" Height="Auto"></RowDefinition>
                    <RowDefinition x:Name="SplitRow" Height="Auto"></RowDefinition>
                    <RowDefinition x:Name="MainRow" Height="*"></RowDefinition>
                </Grid.RowDefinitions>
                <!--@Refactory: Extract out to one IView - View - ViewModel -->
                <ContentControl Grid.Row="0" x:Name="TopContent" >

                </ContentControl>
                <!--@Refactory: Extract out to one IView - View - ViewModel -->
                <ContentControl Background="Transparent" Grid.Row="1" x:Name="SystemContent">
                    <StackPanel Orientation="Horizontal" VerticalAlignment="Top" HorizontalAlignment="Right">
                        <StackPanel.Resources>
                            <Style TargetType="{x:Type Button}" BasedOn="{StaticResource {x:Type Button}}">
                                <Setter Property="VerticalAlignment" Value="Bottom"></Setter>
                                <Setter Property="Margin" Value="2"></Setter>
                            </Style>
                        </StackPanel.Resources>
                        <Button Content="设置"></Button>
                        <Button Content="其他"></Button>
                        <Button Content="登出" Click="Button_Click_2"></Button>
                    </StackPanel>
                </ContentControl>
                <ContentControl Grid.Row="1" x:Name="SelfInfoContent" >
                </ContentControl>

                <ContentControl x:Name="MainContent" Background="Transparent" Grid.Row="3" >
                </ContentControl>
            </Grid>
        </Border>
    </Grid>
</GenericWPF:WindowExtenBase>
